package com.outsource.framework.model.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.outsource.framework.domain.Tuserflow;
import com.outsource.framework.model.repository.TuserflowRepository;
import com.outsource.framework.model.services.TuserflowService;

@Service
public class TuserflowServiceImpl implements TuserflowService{

	@Autowired
	TuserflowRepository repository;

	@Override
	public List<Tuserflow> findByAllflows(String mobile,String month) {
		// TODO Auto-generated method stub
		return repository.findByAllflows(mobile, month);
	}

	@Override
	public Tuserflow save(Tuserflow entity) {
		// TODO Auto-generated method stub
		return repository.save(entity);
	}

	@Override
	public Tuserflow getById(Integer id) {
		// TODO Auto-generated method stub
		return repository.getById(id);
	}

	@Override
	public void update(Tuserflow dto) {
		// TODO Auto-generated method stub
		repository.save(dto);
	}

	@Override
	public Tuserflow getByflows(String mobile, String month, String dates) {
		// TODO Auto-generated method stub
		return repository.getByflows(mobile, month, dates);
	}

	 
}
